using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlayerMouseStateView : MonoBehaviour
{
    [SerializeField] private Image normalImage;
    [SerializeField] private Image aStarImage;
    [SerializeField] private Image UseImage;

    
    private void Update()
    {
        if(PlayerInput.Instance.MouseState == MouseState.Normal)
            SetLight(normalImage, aStarImage, UseImage);
        if(PlayerInput.Instance.MouseState == MouseState.AStar)
            SetLight(aStarImage, normalImage, UseImage);
        if(PlayerInput.Instance.MouseState == MouseState.UseToolOrItem)
            SetLight(UseImage, normalImage, aStarImage);
    }

    private void SetLight(Image image1, Image image2, Image image3)
    {
        image1.color = Color.green;
        image2.color = Color.white;
        image3.color = Color.white;
    }
}
